ARG base_image=hub-dev.qingtui.com/common/jdk:8-centos-sw
FROM $base_image

MAINTAINER cisdi

ENV TZ Asia/Shanghai
ENV SW_AGENT_IGNORE "**/healthz/liveness**"

RUN mkdir -p /data/applogs/app

EXPOSE 8080

WORKDIR /home/app

COPY colmet-frame-archetype/target/colmet-frame-archetype-1.0-SNAPSHOT.jar /home/app/app.jar

COPY run.sh /home/app/run.sh

RUN ["chmod", "+x", "/home/app/run.sh"]

ENTRYPOINT ["./run.sh"]
